.class public Les/nw;
.super Lcom/estrongs/android/ui/dialog/q;
.source "PremiumRetainDialog.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Les/vk;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/nw$a;
    }
.end annotation


# instance fields
.field private a:Les/nw$a;

.field private b:Les/dp;

.field private c:Ljava/lang/String;

.field private d:Landroid/app/Activity;

.field private e:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

.field private f:Lcom/estrongs/android/statistics/TraceRoute;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const/4 p1, 0x1

    new-array p1, p1, [Ljava/lang/String;

    const/4 v0, 0x0

    const-string v1, "premium_retain"

    aput-object v1, p1, v0

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/statistics/TraceRoute;->create([Ljava/lang/String;)Lcom/estrongs/android/statistics/TraceRoute;

    move-result-object p1

    iput-object p1, p0, Les/nw;->f:Lcom/estrongs/android/statistics/TraceRoute;

    return-void
.end method

.method private a()V
    .locals 3

    .line 1
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "page"

    const-string v2, "premium_retain"

    .line 2
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "from"

    .line 3
    iget-object v2, p0, Les/nw;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 4
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "show"

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method


# virtual methods
.method public a(Landroid/app/Activity;)V
    .locals 0

    .line 7
    iput-object p1, p0, Les/nw;->d:Landroid/app/Activity;

    return-void
.end method

.method public a(Les/dp;Ljava/lang/String;)V
    .locals 0

    .line 5
    iput-object p1, p0, Les/nw;->b:Les/dp;

    .line 6
    iput-object p2, p0, Les/nw;->c:Ljava/lang/String;

    return-void
.end method

.method public a(Les/nw$a;)V
    .locals 0

    .line 8
    iput-object p1, p0, Les/nw;->a:Les/nw$a;

    return-void
.end method

.method public a(Z)V
    .locals 0

    if-eqz p1, :cond_0

    .line 9
    invoke-virtual {p0}, Landroid/app/Dialog;->isShowing()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 10
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    :cond_0
    return-void
.end method

.method public synthetic e(Z)V
    .locals 0

    invoke-static {p0, p1}, Les/uk;->a(Les/vk;Z)V

    return-void
.end method

.method public synthetic h()V
    .locals 0

    invoke-static {p0}, Les/uk;->b(Les/vk;)V

    return-void
.end method

.method public onAttachedToWindow()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Dialog;->onAttachedToWindow()V

    .line 2
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0, p0}, Les/b00;->a(Les/vk;)V

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Dialog;->onBackPressed()V

    .line 2
    iget-object v0, p0, Les/nw;->a:Les/nw$a;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0}, Les/nw$a;->onBack()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    const v0, 0x7f09022f

    if-eq p1, v0, :cond_2

    const v0, 0x7f0908c2

    if-eq p1, v0, :cond_1

    const v0, 0x7f0909ae

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p1

    iget-object v0, p0, Les/nw;->d:Landroid/app/Activity;

    check-cast v0, Landroidx/appcompat/app/AppCompatActivity;

    invoke-virtual {p1, v0}, Les/b00;->a(Landroidx/appcompat/app/AppCompatActivity;)V

    goto :goto_0

    .line 3
    :cond_1
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p1

    .line 4
    invoke-static {}, Les/wk;->f()Les/wk$b;

    move-result-object v0

    const/16 v1, 0x12

    .line 5
    invoke-virtual {v0, v1}, Les/wk$b;->a(I)Les/wk$b;

    iget-object v1, p0, Les/nw;->c:Ljava/lang/String;

    .line 6
    invoke-virtual {v0, v1}, Les/wk$b;->a(Ljava/lang/String;)Les/wk$b;

    iget-object v1, p0, Les/nw;->b:Les/dp;

    .line 7
    invoke-virtual {v0, v1}, Les/wk$b;->a(Les/dp;)Les/wk$b;

    iget-object v1, p0, Les/nw;->d:Landroid/app/Activity;

    check-cast v1, Landroidx/appcompat/app/AppCompatActivity;

    .line 8
    invoke-virtual {v0, v1}, Les/wk$b;->a(Landroidx/appcompat/app/AppCompatActivity;)Les/wk$b;

    iget-object v1, p0, Les/nw;->f:Lcom/estrongs/android/statistics/TraceRoute;

    .line 9
    invoke-virtual {v0, v1}, Les/wk$b;->a(Lcom/estrongs/android/statistics/TraceRoute;)Les/wk$b;

    .line 10
    invoke-virtual {v0}, Les/wk$b;->a()Les/wk;

    move-result-object v0

    .line 11
    invoke-virtual {p1, v0}, Les/b00;->a(Les/wk;)V

    .line 12
    iget-object p1, p0, Les/nw;->c:Ljava/lang/String;

    iget-object v0, p0, Les/nw;->b:Les/dp;

    const-string v1, "premium_retain"

    invoke-static {v1, p1, v0}, Lcom/estrongs/android/pop/app/log/viewHolder/a;->a(Ljava/lang/String;Ljava/lang/String;Les/dp;)V

    goto :goto_0

    .line 13
    :cond_2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    .line 14
    iget-object p1, p0, Les/nw;->a:Les/nw$a;

    if-eqz p1, :cond_3

    .line 15
    invoke-interface {p1}, Les/nw$a;->onBack()V

    :cond_3
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    .line 2
    new-instance p1, Landroid/graphics/drawable/ColorDrawable;

    const/4 v0, 0x0

    invoke-direct {p1, v0}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    const p1, 0x7f0c00eb

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(I)V

    const p1, 0x7f0908c2

    .line 5
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    iput-object p1, p0, Les/nw;->e:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    .line 6
    invoke-virtual {p1, p0}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 7
    iget-object p1, p0, Les/nw;->e:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    iget-object v1, p0, Les/nw;->b:Les/dp;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/premium/newui/m;->a(Les/dp;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;->setText(Ljava/lang/CharSequence;)V

    .line 8
    iget-object p1, p0, Les/nw;->e:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;->setIconVisibility(I)V

    const p1, 0x7f09022f

    .line 9
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f0909ae

    .line 10
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 11
    invoke-direct {p0}, Les/nw;->a()V

    const p1, 0x7f0908c5

    .line 12
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 13
    iget-object v0, p0, Les/nw;->b:Les/dp;

    if-eqz v0, :cond_3

    .line 14
    iget-object v0, v0, Les/dp;->q:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const-string v1, " "

    if-nez v0, :cond_0

    .line 15
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Les/nw;->b:Les/dp;

    iget-object v2, v2, Les/dp;->q:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/nw;->b:Les/dp;

    iget-object v1, v1, Les/dp;->o:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 16
    :cond_0
    iget-object v0, p0, Les/nw;->b:Les/dp;

    iget-wide v2, v0, Les/dp;->d:J

    long-to-float v2, v2

    const/high16 v3, 0x42c80000    # 100.0f

    div-float/2addr v2, v3

    .line 17
    iget-boolean v0, v0, Les/dp;->r:Z

    if-eqz v0, :cond_1

    .line 18
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "$"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/nw;->b:Les/dp;

    iget-object v1, v1, Les/dp;->o:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    :cond_1
    const/high16 v0, 0x3f800000    # 1.0f

    cmpl-float v0, v2, v0

    if-lez v0, :cond_2

    float-to-int v0, v2

    .line 19
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 20
    :cond_2
    invoke-static {v2}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v0

    .line 21
    :goto_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\uffe5"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Les/nw;->b:Les/dp;

    iget-object v0, v0, Les/dp;->o:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_3
    :goto_1
    return-void
.end method

.method public onDetachedFromWindow()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Dialog;->onDetachedFromWindow()V

    .line 2
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0, p0}, Les/b00;->b(Les/vk;)V

    return-void
.end method

.method public synthetic onFinish()V
    .locals 0

    invoke-static {p0}, Les/uk;->a(Les/vk;)V

    return-void
.end method

.method public show()V
    .locals 1

    .line 1
    iget-object v0, p0, Les/nw;->b:Les/dp;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
